﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Drawing.Imaging;
using System.Drawing;
using TeenyGrab.Interfaces;
using TeenyGrab.Objects;
using TeenyGrab.Windows;
using TeenyGrab.Helpers;

namespace TeenyGrab.Outputs
{
    [Serializable]
    public class ClipboardOutput : IOutput
    {
        public bool Configurable { get { return false; } set { } }

        public string Name { get { return "Clipboard"; } set { } }

        public string Description { get { return "Copies image to clipboard."; } set { } }

        public ClipboardOutput()
        {

        }

        public void Configure()
        {
        }

        public void Put(ImageObject image)
        {
            System.Windows.Clipboard.SetImage(new Bitmap(image.Image).ToBitmapImage());
        }
    }
}
